<?
function RHeader($nobkt) {
  global $DBConnection;
  $SQL = "	SELECT *,DATE_FORMAT(tglbkt,'%d %M, %Y') as spell_date, SUM(jumlah)  as TOTALPAID,
			if (ifnull(tbldebtur.CUNPWP,'')='','-',tbldebtur.CUNPWP) as CUNPWP
			FROM ais_memorial 
			LEFT JOIN tbldebtur ON ais_memorial.debtur=tbldebtur.CUCODE

			WHERE nobkt='$nobkt' 
			GROUP BY nobkt ";
  return $DBConnection->dbc->get_row($SQL);
}
$Data = RHeader(GetParam("nobkt",""));
if ($Data->curr=="IDR") include("ais_transaction_dn_tax_idr.php");
else include("ais_transaction_dn_tax_usd.php");
?>